<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>junglego: world.hpp Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">junglego
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">world.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="world_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef WORLD_H</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define WORLD_H </span>
<a name="l00009"></a>00009 <span class="preprocessor"></span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &quot;<a class="code" href="types_8hpp.html">types.hpp</a>&quot;</span>
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="keyword">class </span><a class="code" href="class_creature.html">Creature</a>;
<a name="l00013"></a>00013 <span class="keyword">class </span><a class="code" href="class_food.html">Food</a>;
<a name="l00014"></a>00014 
<a name="l00015"></a><a class="code" href="class_world.html">00015</a> <span class="keyword">class </span><a class="code" href="class_world.html">World</a> {
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="keyword">public</span>:
<a name="l00018"></a>00018     <a class="code" href="class_world.html#afa39d4e6f714a7a3691ac0c656f5e8a8">World</a>();
<a name="l00019"></a>00019     <a class="code" href="class_world.html#a8c73fba541a5817fff65147ba47cd827">~World</a>();
<a name="l00020"></a>00020     <span class="keywordtype">bool</span> <a class="code" href="class_world.html#a695e14e5574f9bbdf58c8f39538b11d3">init</a>(<a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> nCreature, <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> nFood, <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> xSize, <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> ySize);
<a name="l00021"></a>00021     <span class="keywordtype">void</span> <a class="code" href="class_world.html#a51b30c67551fb563d87d99d28d0fd6c6">moveScreen</a>(<a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> x, <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> y, <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> scale);
<a name="l00022"></a>00022     <span class="keywordtype">void</span> <a class="code" href="class_world.html#aac8c1fde63c06577ffc648aaefdb37f0">update</a>();
<a name="l00023"></a>00023     <span class="keywordtype">void</span> <a class="code" href="class_world.html#a7fa844c028cf185a5f90359cceeabf7c">paint</a>();
<a name="l00024"></a>00024     <a class="code" href="class_creature.html">Creature</a> * <a class="code" href="class_world.html#aec128c792d233ed624adfc926a3d9744">getCreatures</a> ();
<a name="l00025"></a>00025     <span class="keywordtype">void</span> <a class="code" href="class_world.html#a77967920dfc8db42cec61466e92d3404">saveCreature</a> (<a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> index, <span class="keyword">const</span> <span class="keywordtype">char</span> * filename);
<a name="l00026"></a>00026     <span class="keywordtype">void</span> <a class="code" href="class_world.html#a7f25ed25bcc5ec8f5947c0fd31e8be4d">loadCreature</a> (<a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a> index, <span class="keyword">const</span> <span class="keywordtype">char</span> * filename);
<a name="l00027"></a>00027 
<a name="l00028"></a>00028 <span class="keyword">private</span>:
<a name="l00029"></a><a class="code" href="class_world.html#a42483905f9b8454a61292868d29a8843">00029</a>     <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>       <a class="code" href="class_world.html#a42483905f9b8454a61292868d29a8843">m_nCreature</a>;
<a name="l00030"></a><a class="code" href="class_world.html#a83dbea29b17661c6ca0252e82e932b1e">00030</a>     <a class="code" href="class_creature.html">Creature</a> * <a class="code" href="class_world.html#a83dbea29b17661c6ca0252e82e932b1e">m_creatures</a>;
<a name="l00031"></a><a class="code" href="class_world.html#a2813ef8498f64db3f9ee964c07d0a205">00031</a>     <a class="code" href="class_food.html">Food</a> *     <a class="code" href="class_world.html#a2813ef8498f64db3f9ee964c07d0a205">m_food</a>;
<a name="l00032"></a>00032     <span class="comment">//screen center position</span>
<a name="l00033"></a>00033     <span class="comment">//for possible zoom</span>
<a name="l00034"></a><a class="code" href="class_world.html#a6bf5860fb9d8f404200592609206e216">00034</a>     <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>       <a class="code" href="class_world.html#a6bf5860fb9d8f404200592609206e216">m_xScr</a>;
<a name="l00035"></a><a class="code" href="class_world.html#a6b96ef9603bdd3c8bca55eb7e3ec88bd">00035</a>     <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>       <a class="code" href="class_world.html#a6b96ef9603bdd3c8bca55eb7e3ec88bd">m_yScr</a>;
<a name="l00036"></a><a class="code" href="class_world.html#a02f718296e4f2887157520a32c816751">00036</a>     <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>       <a class="code" href="class_world.html#a02f718296e4f2887157520a32c816751">m_scale</a>;
<a name="l00037"></a>00037     <span class="comment">//max world size</span>
<a name="l00038"></a><a class="code" href="class_world.html#a189b065d93b1ec9055065fea18aa9961">00038</a>     <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>       <a class="code" href="class_world.html#a189b065d93b1ec9055065fea18aa9961">m_xSize</a>;
<a name="l00039"></a><a class="code" href="class_world.html#a7e13242f5970ab45bd6b992c8987d972">00039</a>     <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>       <a class="code" href="class_world.html#a7e13242f5970ab45bd6b992c8987d972">m_ySize</a>;
<a name="l00040"></a>00040     <span class="comment">//ticks passed</span>
<a name="l00041"></a><a class="code" href="class_world.html#a8a39b5be00006f714a4dcb55e0410e0d">00041</a>     <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>       <a class="code" href="class_world.html#a8a39b5be00006f714a4dcb55e0410e0d">m_tick</a>;
<a name="l00042"></a><a class="code" href="class_world.html#aab92ff316e69058675e7232c84fdc246">00042</a>     <a class="code" href="types_8hpp.html#a91ad9478d81a7aaf2593e8d9c3d06a14">uint</a>       <a class="code" href="class_world.html#aab92ff316e69058675e7232c84fdc246">m_state</a>; <span class="comment">//0 - run, 1 - pause</span>
<a name="l00043"></a>00043 
<a name="l00044"></a>00044     <span class="keywordtype">void</span> <a class="code" href="class_world.html#a1b037e6b00d93bac9ec7db5a1217e4fc">applyCollision</a>();
<a name="l00045"></a>00045 };
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="preprocessor">#endif</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 20 2012 21:57:14 for junglego by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
